﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Diagnostics;

namespace DomainModel
{
    [Table(Name = "main.Category")]
    public partial class Category
    {
        #region string CategoryName

        private string _categoryName;
        [DebuggerNonUserCode]
        [Column(Storage = "_categoryName", Name = "CategoryName", DbType = "nvarchar(64)", CanBeNull = false)]
        public string CategoryName
        {
            get
            {
                return _categoryName;
            }
            set
            {
                if (value != _categoryName)
                {
                    _categoryName = value;
                }
            }
        }

        #endregion

        #region int? ID

        private int? _id;
        [DebuggerNonUserCode]
        [Column(Storage = "_id", Name = "ID", DbType = "INTEGER", IsPrimaryKey = true, IsDbGenerated = true)]
        public int? ID
        {
            get
            {
                return _id;
            }
            set
            {
                if (value != _id)
                {
                    _id = value;
                }
            }
        }

        #endregion

        #region int ParentID

        private int _parentID;
        [DebuggerNonUserCode]
        [Column(Storage = "_parentID", Name = "ParentID", DbType = "int", CanBeNull = false)]
        public int ParentID
        {
            get
            {
                return _parentID;
            }
            set
            {
                if (value != _parentID)
                {
                    _parentID = value;
                }
            }
        }

        #endregion

        #region int Rank

        private int _rank;
        [DebuggerNonUserCode]
        [Column(Storage = "_rank", Name = "Rank", DbType = "int", CanBeNull = false)]
        public int Rank
        {
            get
            {
                return _rank;
            }
            set
            {
                if (value != _rank)
                {
                    _rank = value;
                }
            }
        }

        #endregion

    }
}
